<include file="Public:header"/>
<script type="text/javascript" src="__WEBPUBLIC__/Admin/js/ajax-operate.js"></script>
<!--主页面-->
<div id="main-content" class="content">

    <div class="page-header page-header1 clearfix">
        <h3>企业管理</h3>
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="{:U('Company/companylist')}">列表</a>
            </li>
            <li class="active">
                <a href="{:U('Company/addcompany')}">添加</a>
            </li>

        </ul>
    </div>
    <div class="search-content">
        <form action="{:U('Company/companylist')}" method="post" class="search-form form-inline" role="form">
            <div class="form-group">
                <label class="sr-only" for="title">公司名</label>
                <input class="earch-input form-control" id="title" type="text" name="name" value="{$request['name']}" placeholder="公司名"/>　
            </div>
            <button type="submit" class="btn derive">查询</button>
        </form>
    </div>
    <div class="content-box-table content-box-content">
        <form action="{:U('Company/companydelete')}" method="post" class="batch-form">
            <table class="table table-striped table-framed table-hover">
                <thead>
                    <tr>
                        <th width="8%">
                            编号
                        </th>
                        <th width="15%">公司名
                        </th>
                        <th>图标</th>
                        <th>地址</th>
                        <th>管理人</th>
                        <th>联系电话</th>
                        <th>职位</th>
                        <th>备注</th>
                        <th>更新时间</th>
                        <th width="10%">操作</th>
                    </tr>
                </thead>
                <tbody class="tbody">
                    <if condition="empty($list)">
                        <tr><td colspan="20"><span style="font-size:14px;">暂无数据</span></td></tr>
                    </if>
                    <volist name="list" id="vo">
                        <tr>
                            <td>{$vo['id']}</td>
                            <td>{$vo['name']}</td>
                            <td><div><img src="{$vo['logo']}" style="width:100px;"/></div></td>
                            <td>{$vo['address']}</td>
                            <td>{$vo['people']}</td>
                            <td>{$vo['tel']}</td>
                            <td>{$vo['position']}</td>
                            <td>{$vo['remark']}</td>
                            <td>{$vo['utime']|date='Y-m-d H:i:s',###}</td>
                            <td>
                                <a href="{:U('Company/editcompany',array('id'=>$vo['id']))}" title="详情" class="modify">
                                    <span class="icon glyphicon glyphicon-edit"></span>
                                </a>&nbsp;
                                <a href="#" title="删除" class="delete-delete">
                                    <span class="icon glyphicon glyphicon-remove"></span>
                                </a><input type="hidden" value="{:U('Company/deletecompany',array('id'=>$vo['id']))}">
                            </td>
                        </tr>
                    </volist>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="20">
                            <div class="fr">
                                {$page}
                            </div>
                        </td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function(){
        //排序修改
        $("select[name='z_id']").change(function(){
            $('.search-form').submit();
        });
        //批量修改积分
        $('.edit-score-batch').click(function(){
            $('.batch-form').attr('action','{:U("Article/editScoreBatch")}');
            $('.batch-form').submit();
        });
    });
</script>
<include file="Public:footer"/>